package edu.jhu.secondhome.database;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class DataUtil {

	public static void closeStatement(Statement s) {
		try {
			if (s != null) {
				s.close();
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	
	public static void closeResultSet(ResultSet rs) throws SQLException {
		if (rs != null) {
			rs.close();
		}
	}
	
}
